{{template "header"}}
<title>修改文章 - 我的 beego 博客</title>
</head>

<body>
	<nav class="navbar navbar-default navbar-fixed-top">
		<div class="container">
			{{template "navbar" .}}
		</div>
	</nav>
	<div class="container">
		<h1>修改文章</h1>
		<form method="post" action="/topic" enctype="multipart/form-data">
			<input type="hidden" class="btn btn-default" name="tid" value="{{.Topic.Id}}">
			<div class="form-group">
				<label>文章标题：</label>
				<input name="title" class="form-control" value="{{.Topic.Title}}">
			</div>
			<div class="form-group">
				<label>文章分类：</label>
				<input name="category" class="form-control" value="{{.Topic.Category}}">
			</div>
			<div class="form-group">
				<label>文章标签：</label>
				<input class="form-control" placeholder="文章标签" name="labels" value="{{.Topic.Labels}}">
			</div>
			<div class="form-group">
				<label>文章内容：</label>
				<textarea class="form-control" name="content" cols="30" rows="10">{{.Topic.Content}}</textarea>
			</div>
			<div class="form-group">
				<label>文章附件（
					<a href="/attachment/{{.Topic.Attachment}}">{{.Topic.Attachment}}</a> ）：</label>
				<input type="file" class="form-control" name="attachment">
			</div>
			<button type="submit">提交</button>
		</form>
	</div>
</body>

</html>